package com.ruoyi.ihome.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ihome.mapper.RoomDistrictMapper;
import com.ruoyi.ihome.domain.RoomDistrict;
import com.ruoyi.ihome.service.IRoomDistrictService;

/**
 * 房间区域Service业务层处理
 * 
 * @author mage
 * @date 2024-08-13
 */
@Service
public class RoomDistrictServiceImpl implements IRoomDistrictService 
{
    @Autowired
    private RoomDistrictMapper roomDistrictMapper;

    /**
     * 查询房间区域
     * 
     * @param id 房间区域主键
     * @return 房间区域
     */
    @Override
    public RoomDistrict selectRoomDistrictById(Long id)
    {
        return roomDistrictMapper.selectRoomDistrictById(id);
    }

    /**
     * 查询房间区域列表
     * 
     * @param roomDistrict 房间区域
     * @return 房间区域
     */
    @Override
    public List<RoomDistrict> selectRoomDistrictList(RoomDistrict roomDistrict)
    {
        return roomDistrictMapper.selectRoomDistrictList(roomDistrict);
    }

    /**
     * 新增房间区域
     * 
     * @param roomDistrict 房间区域
     * @return 结果
     */
    @Override
    public int insertRoomDistrict(RoomDistrict roomDistrict)
    {
        return roomDistrictMapper.insertRoomDistrict(roomDistrict);
    }

    /**
     * 修改房间区域
     * 
     * @param roomDistrict 房间区域
     * @return 结果
     */
    @Override
    public int updateRoomDistrict(RoomDistrict roomDistrict)
    {
        return roomDistrictMapper.updateRoomDistrict(roomDistrict);
    }

    /**
     * 批量删除房间区域
     * 
     * @param ids 需要删除的房间区域主键
     * @return 结果
     */
    @Override
    public int deleteRoomDistrictByIds(Long[] ids)
    {
        return roomDistrictMapper.deleteRoomDistrictByIds(ids);
    }

    /**
     * 删除房间区域信息
     * 
     * @param id 房间区域主键
     * @return 结果
     */
    @Override
    public int deleteRoomDistrictById(Long id)
    {
        return roomDistrictMapper.deleteRoomDistrictById(id);
    }
}
